using namespace std;
#include <iostream>
#include <cmath>

typedef unsigned int u32;
typedef unsigned long long u64;

int main()
{
  u64 sum=17, current=10;
  bool prime;
	while(current < 2000000)
	{
		prime = true;
		if(current % 2 != 0)
		{
			for(unsigned int i=3; i <= sqrt(current); i++)
			{
				if(current % i == 0)
				{
					prime=false;
					break;
				}
			}
			if (prime)
			{
				sum += current;			
			}
		}
		current++;
	}
	cout << "Answer : " << sum << endl;
}
